package o;

import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;

public class bgi implements IServerCallBack {
    private static bgi ˋ;

    private bgi() {
    }

    public static synchronized bgi ˋ() {
        bgi o_bgi;
        synchronized (bgi.class) {
            if (ˋ == null) {
                ˋ = new bgi();
            }
            o_bgi = ˋ;
        }
        return o_bgi;
    }

    public void ˏ(String str) {
        fae ˏ = fam.ॱ().ˏ();
        if (ˏ == null || ˏ.getGameInfo() == null) {
            Object obj;
            String str2 = "EventReporter";
            StringBuilder append = new StringBuilder().append("report, buoyBridge = ").append(ˏ).append(", gameInfo = ");
            if (ˏ == null) {
                obj = null;
            } else {
                obj = ˏ.getGameInfo();
            }
            Logger.e(str2, append.append(obj).toString());
            return;
        }
        cfw.ˎ(bfp.ˋ(str, ˏ.getGameInfo()), this);
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        if (responseBean.getRtnCode_() != 0) {
            Logger.e("EventReporter", "notifyResult, rtnCode = " + responseBean.getRtnCode_() + "responseCode = " + responseBean.getResponseCode());
        }
    }
}
